package pay;

import java.util.Scanner;

public class SetColor extends Changer{
	
	Scanner in = new Scanner(System.in);
	
	public SetColor(Decorate decorate) {
		super(decorate);
		System.out.println("可以添加颜色：");
	}
	
	public void redEnvelopePay(double money) {
		decorate.redEnvelopePay(money);
	}
	
	public void setColor() {
		System.out.println("1-黑色，2-粉色，3-紫色");
		int x = in.nextInt();
		if(x>0 && x<4) {
			System.out.println("颜色设置成功");
		}
		else {
			System.out.println("颜色设置失败");
		}
	}
	
}
